import {VERSION} from './common'
import request from "@/utils/request";

export function getCarouselList(params) {
  return request({
    url: `/v${VERSION}/slides`,
    method: 'get',
    params
  })
}

export function editCarouselInfo(carId,data) {
  return request({
    url: `/v${VERSION}/slides/${carId}`,
    method: 'patch',
    data
  })
}
export function createCarousel(data) {
  return request({
    url: `/v${VERSION}/slides`,
    method: 'post',
    data
  })
}
